package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum GroupStatus implements IEnum<Integer> {
    RECRUITING(0, "招募中"),
    FORMED(1, "已成团"),
    CANCEL(2, "已取消");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String status;

    GroupStatus(Integer value, String status) {
        this.value = value;
        this.status = status;
    }
}
